-- Mdrop.applescript
-- Mdrop

--  Created by Gustav Axelsson on 2007-03-25.
--  Copyright 2007 __MyCompanyName__. All rights reserved.

on idle
	(* Add any idle time processing here. *)
end idle

on open names
	(* Add your script to process the names here. *)
	set arguments to "-framedrop -vf pp=lb -vo quartz:device_id=1 -fs -cache 8192 -af volnorm -quiet"
	set filename to quoted form of POSIX path of item 1 in names
	set command to "/usr/local/bin/mplayer " & arguments & " " & filename
	do shell script command
	-- Remove the following line if you want the application to stay open.
	quit
end open
